﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain
{
    /// <summary>
    /// 请假申请表
    /// </summary>
    public class LeaveApplication
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int LeaveId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string ApplicantName { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public int DepartMentid { get; set; }
        /// <summary>
        /// 请假类别
        /// </summary>
        public string LeaveType { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 共计时间
        /// </summary>
        public string TimeSpan { get; set; }
        /// <summary>
        /// 报到时间
        /// </summary>
        public DateTime RegistrationTime { get; set; }
        /// <summary>
        /// 请假事由
        /// </summary>
        public string ReasonLeave { get; set; }
        /// <summary>
        /// 部门领导
        /// </summary>
        public string DepartmentHead { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }


        /// <summary>
        /// 逻辑删除 false 未删  true 删除
        /// </summary>
        public bool IsDel { get; set; }
    }
}
